package com.itheima.zZuoYe2;

/**
 * 机动车
 */
public class MotorVehicles {
    private String brand;
    private String price;

    public MotorVehicles(String brand, String price) {
        this.brand = brand;
        this.price = price;
    }

    public MotorVehicles() {

    }

    public String getBrand() {
        return brand;
    }

    public void setBrand(String brand) {
        this.brand = brand;
    }

    public String getPrice() {
        return price;
    }

    public void setPrice(String price) {
        this.price = price;
    }

    public void run() {
        System.out.println("机动车");
    }
}
